{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "toc": true
   },
   "source": [
    "<h1>大纲<span class=\"tocSkip\"></span></h1>\n",
    "<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#tuple对象的读取\" data-toc-modified-id=\"tuple对象的读取-1\"><span class=\"toc-item-num\">1&nbsp;&nbsp;</span>tuple对象的读取</a></span></li></ul></div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## tuple对象的读取\n",
    "1. 字典对象不能获取储存数据的多少\n",
    "1. 字典对象可以遍历储存的数据元素"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-05-14T08:28:26.331700Z",
     "start_time": "2018-05-14T08:28:26.324785Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "test1\n",
      "test2\n",
      "test3\n",
      "test4\n",
      "**************************************************\n",
      "1526286506.3294568\n",
      "test1\n",
      "test2\n",
      "test4\n"
     ]
    }
   ],
   "source": [
    "import time\n",
    "decoder = 'decoder'\n",
    "working_decoders = {\n",
    "    'test1':(decoder,False,time.time()),\n",
    "    'test2':(decoder,True,time.time()),\n",
    "    'test3':(decoder,False,time.time()),\n",
    "    'test4':(decoder,True,time.time())\n",
    "}\n",
    "\n",
    "# 遍历字典\n",
    "for i in working_decoders:\n",
    "    print(i)\n",
    "    \n",
    "# 从字典中删除元素\n",
    "t = working_decoders.pop('test3')\n",
    "\n",
    "print('*'*50)\n",
    "print(t[2])\n",
    "for i in working_decoders:\n",
    "    print(i)\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "conda all lib",
   "language": "python",
   "name": "base"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  },
  "latex_envs": {
   "LaTeX_envs_menu_present": true,
   "autoclose": false,
   "autocomplete": true,
   "bibliofile": "biblio.bib",
   "cite_by": "apalike",
   "current_citInitial": 1,
   "eqLabelWithNumbers": true,
   "eqNumInitial": 1,
   "hotkeys": {
    "equation": "Ctrl-E",
    "itemize": "Ctrl-I"
   },
   "labels_anchors": false,
   "latex_user_defs": false,
   "report_style_numbering": false,
   "user_envs_cfg": false
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "大纲",
   "title_sidebar": "目录",
   "toc_cell": true,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
